/* Pirayesh SaaS Tab Styles */
.psm-tab { font-family: 'Rokh','Vazirmatn',sans-serif; direction: rtl; padding: 24px; color: #1a1a2e; }

/* Hero */
.psm-hero { text-align: center; padding: 40px 20px; background: linear-gradient(135deg,#1a1a2e,#2d3748); color: #fff; border-radius: 16px; margin-bottom: 32px; }
.psm-hero__badge { display: inline-block; background: #f59e0b; color: #1a1a2e; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 100px; margin-bottom: 16px; }
.psm-hero__title { font-size: 24px; font-weight: 700; margin: 0 0 12px; }
.psm-hero__desc  { font-size: 15px; opacity: 0.8; margin: 0; }

/* Benefits */
.psm-benefits { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 16px; margin-bottom: 32px; }
.psm-benefit { background: #f8f9fa; border-radius: 12px; padding: 20px; text-align: center; }
.psm-benefit__icon { font-size: 28px; display: block; margin-bottom: 8px; }
.psm-benefit h3 { font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.psm-benefit p  { font-size: 13px; color: #666; margin: 0; line-height: 1.6; }

/* Pricing */
.psm-pricing { text-align: center; margin-bottom: 32px; }
.psm-pricing__box { display: inline-block; border: 2px solid #1a1a2e; border-radius: 16px; padding: 24px 40px; }
.psm-pricing__label  { font-size: 13px; color: #666; }
.psm-pricing__amount { font-size: 32px; font-weight: 700; color: #1a1a2e; }
.psm-pricing__note   { font-size: 14px; color: #444; margin-top: 4px; }
.psm-pricing__note--sm { font-size: 12px; color: #888; }

/* Notices */
.psm-notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.psm-notice--warning { background: #fff8e1; border: 1px solid #f59e0b; color: #7c4e00; }
.psm-notice--info    { background: #e8f5e9; border: 1px solid #4caf50; color: #1b5e20; }

/* Activate box */
.psm-activate-box { text-align: center; padding: 24px; background: #f8f9fa; border-radius: 12px; }
.psm-activate-box p { margin: 0 0 16px; color: #444; }

/* Buttons */
.psm-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 8px; font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer; border: none; text-decoration: none; transition: all 0.15s; }
.psm-btn--primary { background: #1a1a2e; color: #fff; }
.psm-btn--primary:hover { background: #2d3748; color: #fff; }
.psm-btn--outline { background: transparent; color: #1a1a2e; border: 1px solid #1a1a2e; }
.psm-btn--outline:hover { background: #1a1a2e; color: #fff; }
.psm-btn--danger  { background: #fff; color: #dc2626; border: 1px solid #dc2626; }
.psm-btn--danger:hover { background: #dc2626; color: #fff; }

/* Active header */
.psm-active-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.psm-active-title  { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.psm-domain-link   { font-size: 13px; color: #2563eb; text-decoration: none; }
.psm-domain-link:hover { text-decoration: underline; }
.psm-status-badge  { padding: 4px 12px; border-radius: 100px; font-size: 13px; font-weight: 500; }
.psm-status-badge--active { background: #dcfce7; color: #166534; }

/* Stats */
.psm-section-title { font-size: 15px; font-weight: 700; margin: 0 0 16px; color: #1a1a2e; }
.psm-stats-section { margin-bottom: 32px; }
.psm-stats-grid    { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 12px; }
.psm-stat-card { background: #f8f9fa; border-radius: 12px; padding: 16px; }
.psm-stat-card__icon  { font-size: 24px; margin-bottom: 8px; }
.psm-stat-card__value { font-size: 28px; font-weight: 700; color: #1a1a2e; }
.psm-stat-card__label { font-size: 12px; color: #666; margin: 4px 0 2px; line-height: 1.4; }
.psm-stat-card__sub   { font-size: 11px; color: #999; }

/* Settings form */
.psm-settings-section { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 24px; margin-bottom: 24px; }
.psm-field { margin-bottom: 20px; }
.psm-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.psm-label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.psm-input, .psm-textarea { width: 100%; padding: 9px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-family: inherit; font-size: 14px; box-sizing: border-box; }
.psm-input:focus, .psm-textarea:focus { outline: none; border-color: #1a1a2e; box-shadow: 0 0 0 3px rgba(26,26,46,0.1); }
.psm-hint { font-size: 12px; color: #9ca3af; display: block; margin-top: 4px; }

/* Color picker */
.psm-color-picker { display: flex; align-items: center; gap: 8px; }
.psm-color-input  { width: 40px; height: 36px; padding: 2px; border: 1px solid #d1d5db; border-radius: 6px; cursor: pointer; }
.psm-color-text   { width: 100px !important; }

/* Logo */
.psm-logo-upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.psm-logo-preview { height: 48px; width: auto; border-radius: 6px; border: 1px solid #e5e7eb; }

/* Templates */
.psm-templates-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(100px,1fr)); gap: 10px; }
.psm-template-card { cursor: pointer; border-radius: 10px; border: 2px solid transparent; overflow: hidden; transition: border-color 0.15s; }
.psm-template-card:hover { border-color: #6b7280; }
.psm-template-card--selected { border-color: #1a1a2e !important; }
.psm-template-preview { height: 64px; display: flex; align-items: flex-end; padding: 6px; position: relative; }
.psm-template-label { font-size: 11px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.8); font-weight: 500; }

/* Form actions */
.psm-form-actions { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #e5e7eb; }
.psm-save-status { font-size: 13px; color: #059669; }

/* Danger zone */
.psm-danger-zone { background: #fff5f5; border: 1px solid #fecaca; border-radius: 12px; padding: 20px; margin-top: 16px; }
.psm-danger-zone h4 { margin: 0 0 8px; font-size: 14px; color: #dc2626; }
.psm-danger-zone p  { font-size: 13px; color: #666; margin: 0 0 12px; }
