/* RGY Client Portal Styles */
.rgy-portal { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; max-width: 820px; margin: 0 auto; padding: 16px; }

/* Login card */
.rgy-portal-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 40px; max-width: 440px; margin: 40px auto; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.rgy-portal-card h2 { margin: 0 0 8px; color: #1A5C2A; font-size: 1.5rem; }
.rgy-portal-card p { color: #555; margin: 0 0 24px; }

/* Dashboard header */
.rgy-portal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 20px; border-bottom: 2px solid #1A5C2A; margin-bottom: 28px; }
.rgy-portal-header-left { display: flex; flex-direction: column; gap: 2px; }
.rgy-portal-greeting { font-weight: 700; font-size: 1.1rem; color: #1A5C2A; }
.rgy-portal-email { font-size: .85rem; color: #777; }

/* Sections */
.rgy-portal-section { margin-bottom: 36px; }
.rgy-portal-section h3 { font-size: 1.05rem; color: #1A5C2A; border-bottom: 1px solid #e8f5e9; padding-bottom: 8px; margin-bottom: 16px; }

/* Domain cards */
.rgy-domain-card { background: #fafafa; border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; margin-bottom: 16px; }
.rgy-domain-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.rgy-domain-name { font-size: 1.15rem; font-weight: 700; color: #1a1a1a; }
.rgy-domain-meta { font-size: .82rem; color: #888; margin-bottom: 16px; display: flex; gap: 16px; }

/* NS section */
.rgy-ns-section { margin-top: 12px; }
.rgy-ns-current { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; font-size: .88rem; color: #444; }
.rgy-ns-current strong { color: #1A5C2A; }
.rgy-ns-form { background: #f0f7f1; border: 1px solid #c8e6c9; border-radius: 6px; padding: 16px; margin-top: 12px; }

/* Profile form */
.rgy-profile-form { background: #fafafa; border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; }

/* Form elements */
.rgy-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 600px) { .rgy-form-row { grid-template-columns: 1fr; } }
.rgy-form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.rgy-form-group label { font-size: .85rem; font-weight: 600; color: #444; }
.rgy-form-group input { border: 1px solid #ccc; border-radius: 5px; padding: 9px 12px; font-size: .95rem; width: 100%; box-sizing: border-box; transition: border-color .2s; }
.rgy-form-group input:focus { border-color: #1A5C2A; outline: none; box-shadow: 0 0 0 3px rgba(26,92,42,.1); }

/* Badges */
.rgy-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.rgy-badge-active { background: #e8f5e9; color: #2e7d32; }
.rgy-badge-pending { background: #fff8e1; color: #f57f17; }

/* Buttons */
.rgy-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 5px; font-size: .9rem; font-weight: 600; cursor: pointer; border: none; text-decoration: none; transition: all .2s; }
.rgy-btn-primary { background: #1A5C2A; color: #fff; }
.rgy-btn-primary:hover { background: #154d22; color: #fff; }
.rgy-btn-secondary { background: #e8f5e9; color: #1A5C2A; border: 1px solid #c8e6c9; }
.rgy-btn-secondary:hover { background: #c8e6c9; }
.rgy-btn-outline { background: transparent; color: #1A5C2A; border: 1.5px solid #1A5C2A; }
.rgy-btn-outline:hover { background: #e8f5e9; }
.rgy-btn-ghost { background: transparent; color: #777; border: 1px solid #ccc; }
.rgy-btn-ghost:hover { background: #f5f5f5; }
.rgy-btn-sm { padding: 6px 14px; font-size: .82rem; }

/* Alerts */
.rgy-alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 20px; font-size: .9rem; }
.rgy-alert-success { background: #e8f5e9; border: 1px solid #a5d6a7; color: #1b5e20; }
.rgy-alert-error   { background: #ffebee; border: 1px solid #ef9a9a; color: #b71c1c; }

/* Muted */
.rgy-muted { color: #888; font-size: .9rem; }

/* Footer */
.rgy-portal-footer { border-top: 1px solid #e0e0e0; padding-top: 16px; color: #888; font-size: .82rem; text-align: center; margin-top: 32px; }
.rgy-portal-footer a { color: #1A5C2A; text-decoration: none; }
.rgy-portal-footer a:hover { text-decoration: underline; }

/* Login form */
.rgy-login-form .rgy-btn { width: 100%; margin-top: 8px; }
