/* Thread meta column for stacked avatar/name/time */
.thread-entry .thread-meta-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 120px;
    padding: 1.2rem 1.2rem 1.2rem 1.2rem;
    background: #f9fafb;
    border-right: 1px solid #e2e8f0;
    gap: 0.5rem;
}

.thread-entry .avatar-stack {
    margin-bottom: 0.5rem;
}

.thread-entry .avatar-stack img.avatar {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    display: block;
}

.thread-entry .meta-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.thread-entry .meta-stack .name-time {
    text-align: center;
    margin-bottom: 2px;
}
.thread-entry .meta-stack .thread-title-stacked {
    text-align: center;
    margin-top: 2px;
    max-width: 220px;
    word-break: break-word;
}

.thread-entry .meta-stack .thread-time {
    color: #718096;
    font-size: 0.85rem;
    margin-top: 2px;
}
/* layout.css - Header, Nav, and Global Layout */
#header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-sizing: border-box;
}

#logo img {
    height: 56px;
    display: block;
}

#main-nav ul { 
    display: flex; 
    align-items: center; 
    gap: 0.9rem; 
    list-style: none;
    margin: 0;
    padding: 0;
}

#main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 0.75rem;
    text-decoration: none;
    color: #fff;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
}

#main-nav a:hover:not(.lang a) { background: rgba(255,255,255,0.1); }
#main-nav a.active { background: rgba(255,255,255,0.2); font-weight: 700; }

/* Language Flags */
#main-nav li.lang a {
    padding: 0 !important;
    width: 16px !important;
    height: 12px !important;
    display: block !important;
    overflow: hidden;
}

#main-nav li.lang a:hover {
    opacity: 1 !important;
}

.flag {
    width: 16px !important;
    height: 12px !important;
    display: block !important;
    background: url(../images/flags.png) no-repeat;
}

#banner {
    background-color: var(--banner-bg);
    color: var(--banner-text-color);
    height: var(--banner-height);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#content {
    width: var(--page-width);
    max-width: 95%;
    margin: 2rem auto;
}

/* footer.css logic inside layout.css */
#footer {
    flex-shrink: 0; /* Prevents footer from squishing */
    background: var(--footer-bg, #004976);
    color: #fff;
    padding: 12px 0;
    margin-top: auto; /* The "Magic" that pushes footer to bottom */
    text-align: center;
}

.footer-content {
    width: var(--page-width);
    max-width: 95%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

#footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
}

#footer border { display: none; } /* Removes the old osTicket orange line */

#footer a:hover {
    color: #fff;
    text-decoration: underline;
}

#nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* Guest CTA */
.guest-cta {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 6px;
}

.guest-label {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    font-size: 0.9rem;
}

.signin-link {
    font-weight: 700 !important;
    background: #fff;
    color: var(--primary-color) !important;
    padding: 6px 12px !important;
    border-radius: 5px !important;
    height: auto !important;
    transition: all 0.2s;
}

.signin-link:hover {
    background: #eee !important;
    color: var(--primary-color) !important;
}

@media (max-width: 768px) {
    #nav-toggle {
        display: block;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}

/* Ticket detail page - complete redesign */
.ticket-detail-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 20px;
}

/* Ticket header with title and action icons */
.ticket-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ticket-header-row h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ticket-header-row h1 .refresh-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1.2rem;
}

.ticket-header-row h1 .refresh-link:hover {
    color: #003a5c;
}

.ticket-header-row h1 .ticket-subject {
    flex: 1;
    min-width: 300px;
}

.ticket-header-row h1 .ticket-number {
    font-size: 0.9rem;
    font-weight: 600;
    color: #718096;
}

.ticket-actions {
    display: flex;
    gap: 8px;
}

.ticket-actions .action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f0f4f8;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #2d3748;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1.2rem;
}

.ticket-actions .action-button:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Info grid - two column layout */
.ticket-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 2rem;
}

.info-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.75rem;
}

.info-row {
    display: flex;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: #4a5568;
    min-width: 120px;
    flex-shrink: 0;
}

.info-value {
    color: #2d3748;
    flex: 1;
    word-break: break-word;
}

/* Custom data table styling */
.custom-data {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.custom-data tr td.headline {
    background: #f9fafb;
    font-weight: 700;
    color: #2d3748;
    padding: 12px 15px !important;
    border-bottom: 2px solid #e2e8f0;
}

.custom-data tr {
    border-bottom: 1px solid #e2e8f0;
}

.custom-data tr:last-child {
    border-bottom: none;
}

.custom-data th,
.custom-data td {
    padding: 12px 15px;
    text-align: left;
}

.custom-data th {
    font-weight: 600;
    color: #4a5568;
    background: #f9fafb;
    width: 30%;
}

.custom-data td {
    color: #2d3748;
}

/* Reply form styling */
#reply {
    background: #fff;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-top: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#reply h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a202c;
}

#reply textarea {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    font-family: inherit;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ticket-header-row {
        flex-direction: column;
    }

    .ticket-header-row h1 {
        font-size: 1.5rem;
    }

    .ticket-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Thread and Message Styling */
#ticketThread {
    margin-top: 2rem;
}

/* Thread event (e.g., ticket created) */
.thread-event {
    background: #f9fafb;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.thread-event .type-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #718096;
}

.thread-event .description {
    color: #4a5568;
    font-size: 0.95rem;
}

.thread-event .description b {
    font-weight: 600;
    color: #2d3748;
}

.thread-event .description img.avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    vertical-align: middle;
    margin: 0 4px;
}

.thread-event time {
    color: #718096;
    font-size: 0.85rem;
}

/* Thread entries (messages) */
.thread-entry {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.thread-entry.avatar {
    display: flex;
    gap: 0;
}

.thread-entry .pull-left.avatar {
    flex-shrink: 0;
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    background: #f9fafb;
    border-right: 1px solid #e2e8f0;
}

.thread-entry .pull-left.avatar img.avatar {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    display: block;
}

.thread-entry .header {
    flex: 1;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f9fafb;
}

.thread-entry .header b {
    font-weight: 700;
    color: #1a202c;
    font-size: 1rem;
}

.thread-entry .header time {
    color: #718096;
    font-size: 0.85rem;
    margin-left: 8px;
}

.thread-entry .header .title {
    color: #718096;
    font-size: 0.9rem;
    margin-left: 12px;
}

.thread-entry .header .pull-right {
    float: right;
    display: flex;
    gap: 8px;
}

.thread-body {
    padding: 1.5rem;
    color: #2d3748;
    line-height: 1.6;
}

.thread-body p {
    margin: 0 0 1rem 0;
}

.thread-body p:last-child {
    margin-bottom: 0;
}

.thread-body a {
    color: var(--primary-color);
    text-decoration: none;
}

.thread-body a:hover {
    text-decoration: underline;
}

.thread-body ul,
.thread-body ol {
    margin: 1rem 0;
    padding-left: 20px;
}

.thread-body li {
    margin-bottom: 0.5rem;
}

.thread-body blockquote {
    border-left: 4px solid #e2e8f0;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #718096;
    font-style: italic;
}

/* Clear float helper */
.thread-body .clear,
.clear {
    clear: both;
}

/* Thread message actions */
.thread-entry .textra {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Profile page */
.profile-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

.profile-header h1 {
    margin: 0 0 0.4rem 0;
    font-size: 26px;
    color: #1a202c;
}

.profile-header p {
    margin: 0 0 1.5rem 0;
    color: #4a5568;
}

.profile-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
    padding: 20px 22px;
    margin-bottom: 18px;
}

.profile-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.profile-card-title {
    font-weight: 700;
    color: #1a202c;
    font-size: 18px;
}

.profile-card-hint {
    color: #718096;
    font-size: 13px;
    margin-top: 4px;
}

.profile-card-body {
    display: block;
}

.profile-card table {
    width: 100%;
    border-collapse: collapse;
}

.profile-card table td,
.profile-card table th {
    padding: 6px 4px;
    vertical-align: middle;
}

.profile-card .form_table tr,
.profile-card table tr {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.profile-card .form_table th,
.profile-card table th {
    padding: 0;
    font-weight: 700;
    color: #2d3748;
    font-size: 0.98rem;
    line-height: 1.4;
}

.profile-card .form_table th .required,
.profile-card table th .required {
    color: #e53e3e;
    margin-left: 4px;
}

.profile-card .form_table td,
.profile-card table td {
    padding: 0;
    width: 100%;
}

.profile-card .form_table input[type="text"],
.profile-card .form_table input[type="email"],
.profile-card .form_table input[type="password"],
.profile-card .form_table input[type="tel"],
.profile-card .form_table select,
.profile-card .form_table textarea,
.profile-card table input[type="text"],
.profile-card table input[type="email"],
.profile-card table input[type="password"],
.profile-card table input[type="tel"],
.profile-card table select,
.profile-card table textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background: #fff;
}

.profile-card .form_table input[type="text"]:focus,
.profile-card .form_table input[type="email"]:focus,
.profile-card .form_table input[type="password"]:focus,
.profile-card .form_table input[type="tel"]:focus,
.profile-card .form_table select:focus,
.profile-card .form_table textarea:focus,
.profile-card table input[type="text"]:focus,
.profile-card table input[type="email"]:focus,
.profile-card table input[type="password"]:focus,
.profile-card table input[type="tel"]:focus,
.profile-card table select:focus,
.profile-card table textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 124, 242, 0.18);
}

.profile-card .input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.profile-card .input-group label,
.profile-card .timezone-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

.profile-card .input-group input,
.profile-card .input-group select,
.profile-card .timezone-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
    background: #fff;
}

.profile-card .input-group input:focus,
.profile-card .input-group select:focus,
.profile-card .timezone-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 124, 242, 0.1);
}

.profile-card .error {
    color: #e53e3e;
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Timezone row - make select and button inline */
.profile-card .timezone-row,
#register-page-wrapper .timezone-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.profile-card .timezone-row select,
#register-page-wrapper .timezone-row select {
    flex: 1;
}

.profile-card .timezone-row .action-button,
#register-page-wrapper .timezone-row .action-button {
    flex-shrink: 0;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.profile-card .timezone-row .action-button:hover,
#register-page-wrapper .timezone-row .action-button:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.profile-card .timezone-row .action-button i,
#register-page-wrapper .timezone-row .action-button i {
    margin-right: 6px;
}

/* Select2 styling for timezone dropdown */
.profile-card .select2-container--default .select2-selection--single,
#register-page-wrapper .select2-container--default .select2-selection--single {
    height: auto;
    padding: 12px;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 6px;
    background: #fff;
}

.profile-card .select2-container--default.select2-container--focus .select2-selection--single,
#register-page-wrapper .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 124, 242, 0.1);
    outline: none;
}

.profile-card .select2-container--default .select2-selection--single .select2-selection__rendered,
#register-page-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #2d3748;
}

.profile-card .select2-container--default .select2-selection--single .select2-selection__placeholder,
#register-page-wrapper .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999;
}

.profile-card .select2-container--default .select2-selection--single .select2-selection__arrow,
#register-page-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    top: 0;
    right: 12px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px 18px;
}

.profile-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2d3748;
}

.profile-form input[type="text"],
.profile-form input[type="password"],
.profile-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    background: #f8fafc;
    color: #2d3748;
    box-sizing: border-box;
}

.profile-form input[type="text"]:focus,
.profile-form input[type="password"]:focus,
.profile-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 124, 242, 0.18);
}

.profile-form .form-group {
    display: flex;
    flex-direction: column;
}

.profile-form .input-control {
    width: 100%;
}

.profile-form select {
    height: 44px;
}

.profile-form .error-text {
    min-height: 16px;
    font-size: 12px;
    color: #e53e3e;
    margin-top: 6px;
}

.profile-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.profile-actions .btn-primary,
.profile-actions .btn-ghost {
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-actions .btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 8px 18px rgba(79, 124, 242, 0.28);
}

.profile-actions .btn-primary:hover { background: #3559c7; }

.profile-actions .btn-ghost {
    background: #edf2f7;
    color: #2d3748;
}

.profile-actions .btn-ghost:hover {
    background: #e2e8f0;
}

/* Open ticket page */
.open-ticket-page {
    max-width: var(--page-width);
    margin: 40px auto;
    padding: 0 20px 40px;
}

.open-ticket-page .form-header-main {
    text-align: center;
    margin-bottom: 32px;
}

.open-ticket-page .form-header-main h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 8px 0;
}

.open-ticket-page .form-header-main p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0;
}

.modern-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    padding: 20px 22px;
    margin-bottom: 18px;
}

.modern-card .card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #1a202c;
    font-size: 18px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 2px solid #e2e8f0;
}

.modern-card .step-number {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #cbd5e0;
    color: #2d3748;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.modern-card .form-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-row-flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px 18px;
}

.info-block label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: #2d3748;
}

.info-block .static-val {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    color: #2d3748;
}

.open-ticket-page .input-group label {
    font-weight: 700;
    color: #2d3748;
}

.open-ticket-page .input-group select,
.open-ticket-page .input-group input,
.open-ticket-page select,
.open-ticket-page input[type="text"],
.open-ticket-page input[type="email"],
.open-ticket-page input[type="password"],
.open-ticket-page textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}

.open-ticket-page .input-group select:focus,
.open-ticket-page .input-group input:focus,
.open-ticket-page textarea:focus,
.open-ticket-page select:focus,
.open-ticket-page input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79,124,242,0.18);
}

.error-msg {
    color: #e53e3e;
    font-size: 0.9rem;
    min-height: 18px;
}

.required-star { color: #e53e3e; }

.captcha-flex {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.captcha-flex img {
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.captcha-flex input {
    width: 180px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 18px;
}

.form-actions .btn-primary,
.form-actions .btn-secondary {
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-actions .btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 8px 18px rgba(79,124,242,0.26);
}

.form-actions .btn-primary:hover { background: #3559c7; }

.form-actions .btn-secondary {
    background: #edf2f7;
    color: #2d3748;
}

.form-actions .btn-secondary:hover { background: #e2e8f0; }

/* Registration Page Styling */
#register-page-wrapper .form-header-main {
    text-align: center;
    margin-bottom: 32px;
}

#register-page-wrapper .form-header-main h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 8px 0;
}

#register-page-wrapper .form-header-main p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0;
}

#register-page-wrapper .register-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    padding: 32px 40px;
    max-width: 700px;
    margin: 0 auto;
}

#register-page-wrapper .form-section {
    margin-bottom: 24px;
}

#register-page-wrapper .form-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin: 24px 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

#register-page-wrapper .form-section h3:first-of-type {
    margin-top: 0;
}

/* Make .input-group match .form-field-wrapper styling */
#register-page-wrapper .input-group,
#register-page-wrapper .timezone-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

#register-page-wrapper .input-group label,
#register-page-wrapper .timezone-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

#register-page-wrapper .input-group input,
#register-page-wrapper .input-group select,
#register-page-wrapper .timezone-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
    background: #fff;
}

#register-page-wrapper .input-group input:focus,
#register-page-wrapper .input-group select:focus,
#register-page-wrapper .timezone-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 124, 242, 0.1);
}

#register-page-wrapper .error {
    color: #e53e3e;
    font-size: 0.9rem;
    margin-top: 4px;
}

#register-page-wrapper .button-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #e2e8f0;
}

#register-page-wrapper .btn-primary,
#register-page-wrapper .btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

#register-page-wrapper .btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(79, 124, 242, 0.3);
}

#register-page-wrapper .btn-primary:hover {
    background: #3559c7;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 124, 242, 0.4);
}

#register-page-wrapper .btn-secondary {
    background: #edf2f7;
    color: #2d3748;
}

#register-page-wrapper .btn-secondary:hover {
    background: #e2e8f0;
}

@media (max-width: 640px) {
    #register-page-wrapper .register-card {
        padding: 24px 20px;
    }
    
    #register-page-wrapper .button-group {
        flex-direction: column;
    }
    
    #register-page-wrapper .btn-primary,
    #register-page-wrapper .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .form-actions { flex-direction: column; }
    .form-actions .btn-primary,
    .form-actions .btn-secondary { width: 100%; text-align: center; }
}

@media (max-width: 640px) {
    .profile-card {
        padding: 18px 16px;
    }

    .profile-actions {
        flex-direction: column;
    }

    .profile-actions .btn-primary,
    .profile-actions .btn-ghost {
        width: 100%;
        text-align: center;
    }
}