/* collab/About-Profile/style.css — FUMA Account Google-Style Light Theme */

:root {
    --bg-main: #f8f9fa; /* Sleek Google light-gray background */
    --bg-card: #ffffff; /* Pure white card background */
    --bg-sidebar: #ffffff; /* Pure white sidebar background */
    --bg-hover: #f1f3f4; /* Subtle Google-style light gray hover */
    --primary: #FF6F00; /* Preserve orange identity */
    --primary-hover: #e65c00;
    --primary-light: rgba(255, 111, 0, 0.08); /* Transparent orange overlay */
    --border: #dadce0; /* Professional Google-style gray borders */
    --text-main: #202124; /* Google charcoal text */
    --text-muted: #5f6368; /* Google gray secondary text */
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-code: 'Fira Code', monospace;
    --shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15); /* Sleek soft shadow */
    --shadow-sm: 0 1px 2px 0 rgba(60,64,67,0.1);
    --radius-lg: 12px;
    --radius-md: 8px;
    --radius-sm: 6px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    -webkit-font-smoothing: antialiased;
}

/* Control Center Layout */
.control-center-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar Styling */
.cc-sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 24px;
    flex-shrink: 0;
}

.cc-sidebar-header {
    margin-bottom: 30px;
}

.cc-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.cc-logo-img {
    width: 38px;
    height: 38px;
}

.cc-logo-text {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.cc-user-card {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    margin-bottom: 24px;
}

.cc-avatar-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 12px;
    border: 2px solid var(--primary);
    padding: 3px;
    overflow: hidden;
    background: #ffffff;
}

.cc-avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.cc-user-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-main);
}

.cc-user-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar Nav */
.cc-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.nav-item {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    transition: var(--transition);
}

.nav-item i {
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
}

.nav-item:hover {
    color: var(--text-main);
    background: var(--bg-hover);
}

.nav-item.active {
    color: var(--primary);
    background: var(--primary-light);
    border-left: 3px solid var(--primary);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.cc-sidebar-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.btn-back-workspace {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-md);
    background: var(--bg-main);
    border: 1px solid var(--border);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-back-workspace:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

/* Main Panel */
.cc-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-main);
    height: 100%;
    overflow: hidden;
}

.cc-topbar {
    height: 70px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: #ffffff;
    flex-shrink: 0;
}

.cc-topbar h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
}

/* Scrollable Pane */
.cc-content-pane {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

/* Tabs Display */
.cc-tab-content {
    display: none;
    animation: fadeIn 0.35s ease;
}

.cc-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Welcome Banner */
.welcome-banner {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f1f3f4 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.wb-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.wb-content h1 {
    font-family: 'Syne', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #202124 40%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wb-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.wb-gradient-blob {
    position: absolute;
    right: -100px;
    top: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255,111,0,0.1) 0%, rgba(255,111,0,0) 70%);
    z-index: 1;
    pointer-events: none;
}

/* Grid Cards */
.cc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.cc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.cc-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.header-icon {
    font-size: 1.6rem;
    color: var(--primary);
}

.card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}

.card-preview {
    background: var(--bg-main);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.cc-card:hover .card-link {
    gap: 10px;
}

/* Forms layout */
.section-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.section-card-header {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}

.section-card-header h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text-main);
}

.section-card-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.personal-form-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.avatar-edit-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.avatar-preview-container {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    padding: 4px;
    background: #ffffff;
}

.avatar-preview-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-edit-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.avatar-edit-overlay:hover {
    background: var(--primary-hover);
    transform: scale(1.08);
}

/* Form Styles */
.cc-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.cc-form input, .cc-form textarea, .cc-form select {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 12px 14px;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition);
}

.cc-form input:focus, .cc-form textarea:focus, .cc-form select:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 111, 0, 0.1);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(255, 111, 0, 0.2);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--text-muted);
}

.btn-danger {
    background: #fce8e6;
    color: #c5221f;
    border: 1px solid #f5c2c1;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-danger:hover {
    background: #c5221f;
    color: white;
}

/* Ecosystem styles */
.section-header-simple {
    margin-bottom: 28px;
}

.section-header-simple h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text-main);
}

.section-header-simple p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.app-integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.app-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.app-card-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.app-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.app-card-meta h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.status-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 50px;
}

.status-badge.connected {
    background: #e6f4ea;
    color: #137333;
    border: 1px solid #ceead6;
}

.status-badge.disconnected {
    background: var(--bg-hover);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.app-card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}

.app-card-footer {
    display: flex;
    gap: 12px;
}

.btn-connect-app {
    flex: 1;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
}

.btn-connect-app:hover {
    background: var(--bg-hover);
}

.btn-connect-app.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-launch-app {
    flex: 1;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
}

.btn-launch-app:hover {
    background: var(--bg-hover);
    color: var(--text-main);
}

/* Security Grid Layout */
.security-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

.device-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.device-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.device-icon {
    font-size: 1.4rem;
    color: var(--primary);
}

.device-details p {
    font-weight: 700;
    color: var(--text-main);
}

.device-details small {
    color: var(--text-muted);
}

.device-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

.tag-current {
    background: #e6f4ea;
    color: #137333;
}

.btn-remove-device {
    background: none;
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    color: #c5221f;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-remove-device:hover:not(:disabled) {
    background: #fce8e6;
}

.btn-remove-device:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    color: var(--text-muted);
}

/* Loading Dots */
.loading-dots {
    display: flex;
    gap: 6px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Perks & Badges layout */
.perks-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
}

.perks-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.perk-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    gap: 20px;
    box-shadow: var(--shadow-sm);
}

.perk-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.perk-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.perk-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Certificate Preview 3D Card */
.perks-cert-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cert-preview-wrapper {
    perspective: 1200px;
}

.cert-card-3d {
    width: 420px;
    height: 280px;
    background: #ffffff;
    color: #111118;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.1),
        0 0 100px rgba(255, 111, 0, 0.05);
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
    border: 1px solid rgba(255, 111, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.cert-frame {
    border: 2px solid #a85f1c;
    height: 100%;
    width: 100%;
    border-radius: 8px;
    padding: 20px;
    background: #fbf9f4; /* Authentic Parchment */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cert-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cert-logo {
    width: 32px;
    height: 32px;
}

.cert-header-text h4 {
    font-family: 'Syne', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: -0.2px;
    color: #FF6F00;
}

.cert-header-text span {
    font-size: 0.58rem;
    color: #666677;
    text-transform: uppercase;
    font-weight: 700;
}

.cert-body {
    margin-top: 10px;
}

.cert-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #111118;
}

.cert-sub {
    font-size: 0.6rem;
    color: #777788;
    margin-bottom: 8px;
}

.cert-recipient {
    font-family: 'Syne', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: #a85f1c;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 4px;
    margin-bottom: 6px;
}

.cert-text {
    font-size: 0.65rem;
    color: #444455;
    line-height: 1.4;
}

.cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.58rem;
    color: #777;
    margin-top: 10px;
}

.cert-date-box, .cert-signature-box {
    display: flex;
    flex-direction: column;
}

.cert-date-box strong, .cert-signature-box strong {
    font-size: 0.65rem;
    color: #111;
    font-weight: 700;
    margin-top: 2px;
}

.cert-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 111, 0, 0.25) 0%, rgba(255, 111, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.cert-card-3d:hover .cert-glow {
    opacity: 1;
}

/* Modals general */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.modal {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 440px;
    position: relative;
    box-shadow: var(--shadow);
    color: var(--text-main);
    animation: modalIn 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.close-modal-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal-btn:hover {
    color: var(--text-main);
}

.modal-header h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.full-width {
    width: 100%;
}

/* Toast Notification Styles */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: #ffffff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    min-width: 280px;
    max-width: 400px;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.toast.error {
    border-left-color: #d93025;
}

.toast.info {
    border-left-color: #1a73e8;
}

.toast i {
    font-size: 1.15rem;
}

.toast.success i { color: var(--primary); }
.toast.error i { color: #d93025; }
.toast.info i { color: #1a73e8; }

/* Custom Spin */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Responsive design */
@media (max-width: 992px) {
    body {
        height: auto;
        overflow: auto;
    }
    
    .control-center-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }
    
    .cc-sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        background: #ffffff;
    }
    
    .cc-sidebar-header {
        margin-bottom: 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .cc-user-card {
        display: none;
    }
    
    .cc-nav-menu {
        display: flex;
        flex-direction: row;
        gap: 8px;
        overflow-x: auto;
        padding: 4px 0;
        margin-bottom: 0;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    
    .cc-nav-menu::-webkit-scrollbar {
        display: none;
    }
    
    .nav-item {
        padding: 8px 16px;
        font-size: 0.85rem;
        white-space: nowrap;
        border-bottom: 2px solid transparent;
        border-radius: 0;
    }
    
    .nav-item.active {
        border-left: none;
        border-bottom: 2px solid var(--primary);
        background: transparent;
        color: var(--primary);
    }
    
    .cc-sidebar-footer {
        display: none;
    }
    
    .cc-main-content {
        height: auto;
        overflow: visible;
    }
    
    .cc-content-pane {
        padding: 20px 16px;
        overflow-y: visible;
    }
    
    .security-grid {
        grid-template-columns: 1fr;
    }
    
    .perks-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .cert-card-3d {
        width: 100%;
        max-width: 400px;
        height: auto;
        aspect-ratio: 3 / 2;
    }
}

@media (max-width: 768px) {
    .personal-form-layout {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .avatar-edit-box {
        width: 100%;
        text-align: center;
    }
    
    .welcome-banner {
        padding: 24px;
        margin-bottom: 20px;
    }
    
    .welcome-banner h1 {
        font-size: 1.7rem;
    }
    
    .welcome-banner p {
        font-size: 0.85rem;
    }
    
    .cc-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .cc-card {
        padding: 20px;
    }
    
    .section-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .cc-topbar {
        padding: 0 16px;
    }
    
    .cc-topbar h2 {
        font-size: 1.15rem;
    }
    
    .cert-card-3d {
        max-width: 320px;
        height: 220px;
    }
    
    .cert-frame {
        padding: 12px;
    }
    
    .cert-title {
        font-size: 0.9rem;
    }
    
    .cert-recipient {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }
    
    .cert-text {
        font-size: 0.55rem;
        line-height: 1.35;
    }
    
    .cert-logo {
        width: 24px;
        height: 24px;
    }
    
    .cert-header-text h4 {
        font-size: 0.7rem;
    }
    
    .cert-footer {
        margin-top: 6px;
        font-size: 0.5rem;
    }
}

/* Integrated Account Dropdown styling */
.account-dropdown {
    display: none;
    position: absolute;
    top: 46px;
    right: 0;
    width: 280px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    z-index: 2000;
    overflow: hidden;
}

.account-dropdown.show {
    display: block !important;
    animation: dropIn 0.2s ease-out;
}

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.current-account-header {
    padding: 12px 16px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(255, 111, 0, 0.04);
    border-bottom: 1px solid var(--border);
}

.account-list {
    max-height: 200px;
    overflow-y: auto;
}

.account-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f4;
    transition: background 0.2s;
    cursor: pointer;
    text-align: left;
}

.account-item:hover {
    background: var(--bg-hover);
}

.account-item.active {
    background: var(--primary-light);
    cursor: default;
}

.account-item.active .acc-name {
    color: var(--primary);
}

.acc-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.acc-info {
    flex: 1;
    overflow: hidden;
}

.acc-name {
    display: block;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
}

.acc-email {
    display: block;
    color: var(--text-muted);
    font-size: 0.72rem;
}

.action-item {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 12px 16px;
    color: var(--text-main);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.account-actions {
    background: #ffffff;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.action-item:hover {
    background: var(--bg-hover);
}

.action-item.danger {
    color: #ef4444;
    border-top: 1px solid var(--border);
}

.action-item.danger:hover {
    background: rgba(239, 68, 68, 0.08);
}

.cc-topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 50px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.cc-topbar-user:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}
