/*
Original design: Variant Portal (v1.0 - Jun 26, 2010) - A free xhtml/css website template by Andreas Viklund.
For more information, see http://andreasviklund.com/templates/variant-portal/
*/

*{margin:0;padding:0;}

html{
	height:100%;
}
body{
	
	color:#555;
	font:100% Arial, tahoma, verdana, sans-serif;
	min-height:100%;
}

a{color:#286ea0;text-decoration:none;}
a:hover{text-decoration:underline;}
a img{border:0;}

h1{
	font-size:2.1em;
	letter-spacing:-1px;
	margin:0 0 5px; 
	padding:0;
	font-weight: bold;
}


h2{font-size:1.6em;margin:0 0 12px; padding:0;}
h3{font-size:1.3em;margin:0 0 10px; padding:0;}
p, ul{line-height:1.5em;margin:0 0 18px;text-align:left;}
ul,ol {list-style:auto; margin:0 0 15px 0px; }
ol.listnumber {padding-left: 10px;}
hr {clear:both; visibility:hidden;}
table {}/*li {min-width:300px;}
ul#navitab li.active{		font-weight: bold;		background:#777 url(images/corner.gif) no-repeat top right !important;		border-left:1px solid #aaa !important;		color:#eee !important;		}*/
#container{
	background:#fff;
	/*margin:15px auto 0 auto;*/
	/*width:980px;*/
	margin:0px auto 0 auto;
	width:80%;
	padding: 0px 0px 0px 0px;
}

.scrFreeHome{ 
	/*THIS IS FOR PC SIZE SCREEN, NORMAL SCREE, NON-MOBILE*/
	max-width:45%;
	object-fit: contain;
	/*width: auto;
    height: auto;*/
	width: 45%;
	height: auto;
	/*float:left;*/
	display:block;
	padding-bottom:10px;
}

.restOf{
	margin-top:10px;
		display:inline-block;
		max-width: 98%;
}

.sideBullets{
	
	display:  grid;
	padding-left:35px;
}

.sectionImgBulletPoints{
	display:flex;
  align-items:end;

}

@media only screen and (max-width: 480px) {
	/*screen of a mobile phone, less than 600px*/
	.scrFreeHome{
		max-width:98%;
		object-fit: contain;
		width: 98%;
		height: auto;
		/*float:none;*/
	}
	.sectionImgBulletPoints{
		
		display:block;
	}
}	

.downloadLink{
	font-size: 15px;
    text-align: center;
    float: left;
    display: block;
    /*background-color: #f8f8f8; */
	background-color: #eee;
    border: 1px solid #bbbbbb;
    padding: 12px;
    margin-bottom: 12px;
    margin-right: 12px;
    color: #000000;
	margin-top: 10px;
}

#toplinks {width:400px; float:right;margin:0 15px 0 0;}
#toplinks p {text-align:right;}
#logo{
	/*width: 950px;*/
	/*width:80%;	*/
	margin: 0 auto; 
	padding: 10px 0 0 0px;
	min-height: 5vh; 
	font-size: 22px;
}
#logo h1 a{color:#777;padding:0;}
#logo h1 a:hover{text-decoration:none;}
#logo p{color:#555;font-size:1.4em;}
#desc{
background:#555;
clear:both;
color:#eee;
margin-bottom:5px;
padding:15px 15px 2px 15px;
}
#desc a{color:#eee;text-decoration:underline;}

#main{
	/*float:left;*/
	padding:0; 
	/*margin:0px 15px 10px 15px; */
	display: flex;

	/*width:80%;*/
}


#footer{clear:both;background:#555; color:#eee ;margin:10px 0 0;padding:1px;text-align:left;z-index: 555;
    position: relative;}
#footer a{color:#eee;}
#footer p{margin:0; font-size:0.9em; font-weight:700;}

ul#navitab{margin:0;padding:0;}
ul#navitab li{display:block;float:left;margin:0;padding:0;}
ul#navitab li a{ /*highliting of the selected oage*/	background:url(images/corner.gif) no-repeat top right #eee;	border-left:1px solid #ccc;	border-right:2px solid #fff;	color:#555;	display:block;	height:1.2em;	padding:5px 16px 7px;	text-align:center;	text-decoration:none;	/*text-transform:uppercase; */	white-space:nowrap;}
ul#navitab li a:hover{		background:#eee url(images/corner.gif) no-repeat top right;	border-left:1px solid #aaa;	/*color:#eee;
	background:#555 url(images/corner.gif) no-repeat top right;
	*/	text-decoration:underline;}
ul#navitab li a.current{
	background:#777 url(images/corner.gif) no-repeat top right;
	border-left:1px solid #555;
	color:#eee;
}

ul#navitab li.active a{
	/*background:#2a14a2 url(images/corner.gif) no-repeat top right !important;	
color:#eee; 
	background:#4B77A1 url(images/corner.gif) no-repeat top right !important;	*/
	background:#a2ff83 url(images/corner.gif) no-repeat top right !important;
	border-left:1px solid #aaa;	
	color:#000000;
}


.splitleft {width:48%;float:left;}
.splitright {margin-left:52%;}

.right{text-align:right;}
.block{background:#eee url(images/corner.gif) no-repeat top right;padding:15px;border-bottom:1px solid #ccc;border-left:1px solid #ccc;}
.hide{display:none;}

#paypal-button-container{
	display:inline-block
}
#content1{
	display:inline-block;
	vertical-align: top;
	margin: 17px 10px 5px 17px
}

#main-content-box{
	display: flex;
	
}

/* ADDING OUR OWN */
.showTooltip {

   margin: 0 auto;
   cursor: pointer;
   font-family: system, sans-serif;
   position:absolute;
line-height:normal;
line-height: 17px;

}

.showTooltip:hover::after {
		content: attr(data-tip);
		top: 3.5em;
		left: 2em;
		background-color: #16a67d;
		color: white;
		font-size: 12px;
		padding: .25em .5em;
		position:absolute;
		width: 255px;
                z-index:500;
               white-space: pre-wrap;
              
}

.wTooltip {

   margin: 0 auto;
   cursor: pointer;
   font-family: system, sans-serif;
   position:absolute;
}

.wTooltip:hover::before {
		content: attr(data-tip);
		top: -9em;
		left: -5em;
		background-color: midnightblue;
		color: white;
		font-size: 12px;
		padding: .25em .5em;
		position:absolute;
		width:275px;
}


.bshowHTip {
    text-decoration:none;
    position:relative;
}
.bshowHTip span {
    display:none;
}
.bshowHTip:hover span {
    display:block;
    position:fixed;
    overflow:hidden;
}

.showHTip {

   margin: 0 auto;
   cursor: pointer;
   font-family: system, sans-serif;
   color:white !important;
}

.showHTip:hover::after {
		content: attr(data-tip);
		top: 2.5em;
		left: 0.5em;
		background-color: #16a67d;
		color: white;
		font-size: 12px;
		padding: .25em .5em;
		position: relative;
		width:255px;
	
}

.couponcode {
    color: red;
    cursor: pointer;
}

.couponcode:hover .coupontooltip {
    display: block;
}

.coupontooltip {
    position: absolute;
    white-space: nowrap;
    display: none;
    background: #ffffcc;
    border: 1px solid black;
    color: black;
    padding: 5px;
    z-index: 1000;
	max-width: 25%;
	white-space: pre-wrap;
	mouse
}

.infoClass{
	display:inline-block;
	width:12px;
	height:12px;
	padding-left:3px;
	padding-top:3px;
}
.hiderClass{
	visibility:hidden;
}

.rightPart{
	float:right;
	padding-left: 10px;
}

.noDisp{
	display:none
}


.container_row {
    border: 1px solid red;
    height: 50px;
    margin: 0;
    position: relative;
}

.layer1 {
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
    height: 50px;
}

.layer2 {
    position: absolute;
    z-index: 2;
    left: 0;
    top: 0;
    height: 50px;
    border: 1px solid green;
}

#headerDivID{
	display:none;
	
}

.headerContents{
	
	min-height: 300px;
	min-width: 90%;
	
	font-family: monospace;
	font-size: 13.333;
	border-width: 1px;
	border-style: solid;
}

#descID{
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(13,110,253,.25);
    resize: vertical;
}


#nonModalPart{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  background-color: rgba(0,0,0,0.16);
  display:none;
}

#modalPart {
  position: static;
    top: 50%;              /* Move to vertical center */
    left: 50%;             /* Move to horizontal center */
    transform: translate(-50%, -50%); /* Offset to center the element */

  background-color: white;
  border: solid 2px gray;
  color:black;
  
  border: 20px solid #2f6ebe;
    z-index: 600;
}

.button-style {
    background-color: #4CAF50; 
    color: white; 
    border: none; 
    padding: 15px 20px; 
    font-size: large; 
    cursor: pointer; 
    border-radius: 5px; 
    transition: background-color 0.3s; 
    margin-top: 10px; 
}

.button-style:hover {
    background-color: #45a049; /* Darker green on hover */
}

#descID:focus {
      border-color: #45a049; /* Darker green on focus */
      background-color: #ffffff; /* Change background on focus */
  }
  
  #clickURLid{
	  margin-bottom: 15px;
  }

 #previewBtnID{
    cursor: pointer; /* Default cursor for button */
    z-index: 610;
}

.message-container {
    display: flex;
    flex-direction: column;
    
	align-items: anchor-center;
}

#messageContent.message-text,
#encMsgContent.message-text,
.alert-badge {
    width: 500px; /* Same fixed width for all boxes */
    font-size: smaller;
    padding: 15px;
    box-sizing: border-box;
	max-width: 500px;
	
}

#messageContent.message-text {
    
}

#encMsgContent.message-text {
    
    flex-direction: column;
	white-space: nowrap; 
	overflow: hidden;
	text-overflow: ellipsis;
}

.encrypted-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#caption1 {
    text-align: right; 
    font-size: x-small;
    color: gray; 
    
	margin-top: -37px;
    margin-right: 15px;
    visibility:hidden
}


#caption2 {
    text-align: right; 
    font-size: x-small;
    color: gray; 
    
	margin-top: -37px;
    margin-right: 15px;
    visibility:hidden
}

.encrypted-text2 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
	background: rgba(251, 191, 36, 0.15);

	border: 2px solid #fbbf24;
    border-radius: 50px;
    padding: 10px 22px;
    color: #78350f;
    font-size: 12px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 10px;

}

.loading-dot {
    width: 10px; /* Size of the dot */
    height: 10px; /* Size of the dot */
    background-color: #007bff; /* Dot color */
    border-radius: 50%; /* Makes it round */
    position: relative;
    top: 50%;
    left: -10px; /* Starts off-screen */
    animation: loadingAnimation 2s linear infinite; /* Animation effect */
}

@keyframes loadingAnimation {
    0% {
        left: -10px; /* Starting position */
    }
    50% {
        left: calc(100% - 10px); /* Move to right side */
    }
    100% {
        left: -10px; /* Reset to starting position */
    }
}

#showAll{
	visibility:hidden
}






.alert-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.alert-overlay.active {
	opacity: 1;
	pointer-events: all;
}

.alert-box {
	background: white;
	border-radius: 16px;
	padding: 40px;
	max-width: 450px;
	width: 90%;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	transform: scale(0.9);
	transition: transform 0.3s ease;
}

.alert-overlay.active .alert-box {
	transform: scale(1);
}

.alert-icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 24px;
	position: relative;
}

.lock-icon {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: pulse 2s ease-in-out infinite;
}

.lock-icon svg {
	width: 40px;
	height: 40px;
	fill: white;
}

@keyframes pulse {
	0%, 100% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
	}
	50% {
		transform: scale(1.05);
		box-shadow: 0 0 0 20px rgba(102, 126, 234, 0);
	}
}

.alert-title {
	font-size: 24px;
	font-weight: 700;
	color: #1a202c;
	margin-bottom: 12px;
}

.alert-message {
	font-size: 15px;
	color: #718096;
	line-height: 1.6;
	margin-bottom: 28px;
}

.progress-container {
	width: 100%;
	height: 6px;
	background: #e2e8f0;
	border-radius: 3px;
	overflow: hidden;
	margin-bottom: 16px;
}

.progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
	border-radius: 3px;
	transition: width 0.3s ease;
}

.progress-steps {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: #a0aec0;
}

.step {
	display: flex;
	align-items: center;
	gap: 6px;
	transition: color 0.3s ease;
}

.step.active {
	color: #667eea;
	font-weight: 600;
}

.step-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #cbd5e0;
	transition: background 0.3s ease;
}

.step.active .step-dot {
	background: #667eea;
}

.step.completed .step-dot {
	background: #48bb78;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

#copyRightID{
	padding-left: 5px;
}

.spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid #e2e8f0;
	border-top-color: #667eea;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

/* =====================================================
   TOUCH-FRIENDLY BASE STYLES
   ===================================================== */
button,
input[type="submit"],
.action-btn,
.button-style,
a {
  touch-action: manipulation;
}

* {
  -webkit-tap-highlight-color: transparent;
}

input,
textarea,
button {
  box-sizing: border-box;
}

/* =====================================================
   MOBILE BUTTONS - Force visibility at all mobile sizes
   This must come before other media queries
   ===================================================== */
@media only screen and (max-width: 768px) {
  /* Force header row layout */
  .header-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 5px !important;
    box-sizing: border-box !important;
  }

  /* Force buttons container to be visible */
  .action-buttons-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    transform: none !important;
    gap: 3px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Force each button to be visible and compact */
  .action-btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    transform: none !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 30px !important;
    width: 30px !important;
    height: 30px !important;
    padding: 5px !important;
    flex-shrink: 0 !important;
    border-radius: 6px !important;
  }

  /* Hide text, show only icons */
  .action-btn .btn-text {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  /* Force icons to be visible */
  .action-btn .btn-icon-svg {
    display: block !important;
    visibility: visible !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    margin: 0 !important;
  }

  /* Logo - keep readable size */
  #logo {
    flex-shrink: 0 !important;
  }

  #logo h1 {
    font-size: 1.4em !important;
    white-space: nowrap !important;
    margin: 0 !important;
  }
}

/* =====================================================
   MOBILE RESPONSIVE STYLES - Portrait Mode (768px)
   ===================================================== */
@media only screen and (max-width: 768px) {

  /* Main container adjustments */
  #container {
    width: 95% !important;
    padding: 5px 0 !important;
  }

  /* Single column layout - override inline styles */
  #leftPane,
  #rightPane {
    float: none !important;
    width: 100% !important;
    padding: 15px 10px !important;
    box-sizing: border-box;
  }

  /* Outer div should stack children */
  #outerDiv {
    display: block !important;
  }

  /* Main content box - stack vertically */
  #main-content-box {
    display: block;
    flex-direction: column;
  }

  #main {
    display: block;
    margin: 0 10px 10px 10px !important;
  }

  /* Textarea styling for mobile - 16px prevents iOS zoom */
  #descID {
    width: 100% !important;
    font-size: 16px !important;
    padding: 12px !important;
    min-height: 0 !important;
    height: auto !important;
    box-sizing: border-box;
    overflow: hidden !important;
  }

  /* URL output textarea */
  #textAreaurlID {
    width: 100% !important;
    font-size: 16px !important;
    padding: 12px !important;
    min-height: 80px;
    box-sizing: border-box;
  }

  /* Full-width touch-friendly buttons */
  #clickURLid,
  .button-style,
  input[type="submit"] {
    width: 100% !important;
    padding: 18px 20px !important;
    font-size: 1.1em !important;
    margin: 10px 0 !important;
    min-height: 55px !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
  }

  /* Modal buttons */
  #copyURLid,
  #previewBtnID,
  #delButtonID {
    width: 100% !important;
    margin: 10px 0 !important;
    min-height: 50px !important;
    font-size: 1.1em !important;
    box-sizing: border-box;
  }

  /* Modal Part adjustments for mobile */
  #modalPart {
    padding: 25px 15px !important;
    width: 95% !important;
    max-width: none !important;
  }

  /* Button container in modal - stack vertically */
  .button-container {
    flex-direction: column !important;
  }

  /* Message container adjustments */
  .message-container {
    width: 100% !important;
  }

  #messageContent.message-text,
  #encMsgContent.message-text,
  .alert-badge {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Alert overlay box */
  .alert-box {
    padding: 25px 15px !important;
    width: 95% !important;
    max-width: none !important;
  }

  /* Split columns should stack */
  .splitleft,
  .splitright {
    width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
  }

  /* Download links full width */
  .downloadLink {
    width: 100% !important;
    margin-right: 0 !important;
    padding: 15px !important;
    float: none !important;
  }

  /* Logo adjustments */
  #logo {
    padding: 10px 10px 0 10px !important;
    font-size: 18px !important;
  }

  /* Tip text */
  #tip {
    font-size: 0.9em;
    line-height: 1.4;
  }

  /* Footer */
  #footer {
    padding: 10px !important;
  }

  #footer p {
    font-size: 0.85em !important;
  }

  /* Header wrapper - row layout with buttons */
  .header-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 5px 10px !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Logo - keep readable */
  #logo {
    flex-shrink: 0 !important;
  }

  #logo h1 {
    font-size: 1.4em !important;
    white-space: nowrap !important;
    margin: 0 !important;
  }

  /* Action buttons container - MUST be visible */
  .action-buttons-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 3px !important;
    padding: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
  }

  /* Action buttons - compact, icon-only in portrait */
  .action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 32px !important;
    width: 32px !important;
    height: 32px !important;
    padding: 6px !important;
    font-size: 0.7rem !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Hide button text on mobile portrait - icons only */
  .action-btn .btn-text {
    display: none !important;
  }

  /* Icons sized for compact buttons */
  .action-btn .btn-icon-svg {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
  }

  /* Current page indicator - adjust for smaller buttons */
  .action-btn.current-page {
    border-width: 2px !important;
    outline-width: 2px !important;
  }

  /* Images responsive */
  img {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* =====================================================
   EXTRA SMALL DEVICES (phones in portrait, 480px)
   ===================================================== */
@media only screen and (max-width: 480px) {
  /* Container full width */
  #container {
    width: 100% !important;
  }

  /* Pane padding adjustment */
  #leftPane,
  #rightPane {
    padding: 10px 8px !important;
  }

  /* Even larger touch targets */
  #clickURLid,
  .button-style,
  input[type="submit"] {
    padding: 20px !important;
    font-size: 1.2em !important;
    min-height: 60px !important;
  }

  /* Textarea for easier input - auto-grows */
  #descID {
    min-height: 0 !important;
    height: auto !important;
    font-size: 17px !important;
    overflow: hidden !important;
  }

  /* Header - ensure row layout with visible buttons */
  .header-wrapper {
    display: flex !important;
    flex-direction: row !important;
    padding: 5px 8px !important;
  }

  /* Logo - keep readable */
  #logo h1 {
    font-size: 1.3em !important;
  }

  /* Buttons container must be visible */
  .action-buttons-container {
    display: flex !important;
    visibility: visible !important;
    gap: 2px !important;
  }

  /* Even more compact buttons on small screens */
  .action-btn {
    display: inline-flex !important;
    visibility: visible !important;
    min-width: 28px !important;
    width: 28px !important;
    height: 28px !important;
    padding: 5px !important;
  }

  .action-btn .btn-icon-svg {
    display: block !important;
    width: 14px !important;
    height: 14px !important;
  }

  .action-btn .btn-text {
    display: none !important;
  }
}

/* =====================================================
   VERY SMALL SCREENS (iPhone SE, etc. under 400px)
   ===================================================== */
@media only screen and (max-width: 400px) {
  .header-wrapper {
    display: flex !important;
    flex-direction: row !important;
    padding: 3px 5px !important;
    gap: 4px !important;
  }

  #logo h1 {
    font-size: 1.3em !important;
  }

  .action-buttons-container {
    display: flex !important;
    visibility: visible !important;
    gap: 2px !important;
  }

  .action-btn {
    display: inline-flex !important;
    visibility: visible !important;
    min-width: 26px !important;
    width: 26px !important;
    height: 26px !important;
    padding: 4px !important;
    border-radius: 5px !important;
  }

  .action-btn .btn-icon-svg {
    display: block !important;
    width: 14px !important;
    height: 14px !important;
  }

  .action-btn .btn-text {
    display: none !important;
  }
}

/* =====================================================
   MOBILE LANDSCAPE - Compact buttons and single column
   ===================================================== */
@media (orientation: landscape) and (max-width: 950px) {
  /* Single column layout forced */
  #main,
  #main-content-box,
  #outerDiv {
    display: block !important;
  }

  #leftPane,
  #rightPane {
    width: 100% !important;
    float: none !important;
    padding: 10px !important;
    box-sizing: border-box !important;
  }

  .splitleft,
  .splitright {
    width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
  }

  /* Container full width in landscape */
  #container {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Header layout - FULL WIDTH row with logo and buttons */
  .header-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 5px 10px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  /* Logo - keep readable */
  #logo {
    margin: 0 !important;
    min-height: auto !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
  }

  #logo h1 {
    font-size: 1.4em !important;
    margin: 0 !important;
  }

  /* Action buttons container - row layout, visible, MUST show all buttons */
  .action-buttons-container {
    display: flex !important;
    flex-direction: row !important;
    visibility: visible !important;
    opacity: 1 !important;
    gap: 4px !important;
    padding: 0 !important;
    flex-wrap: nowrap !important;
    flex-shrink: 0 !important;
  }

  /* Action buttons - compact squares, icon-only */
  .action-btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 32px !important;
    width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 6px !important;
    font-size: 10px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }

  /* Hide button text - show icons only */
  .action-btn .btn-text {
    display: none !important;
  }

  /* Icons compact and centered */
  .action-btn .btn-icon-svg {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
  }

  /* Current page indicator - smaller for compact buttons */
  .action-btn.current-page {
    border-width: 2px !important;
    outline-width: 2px !important;
  }

  /* Images responsive */
  img {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* =====================================================
   FALLBACK LANDSCAPE DETECTION (aspect ratio based)
   ===================================================== */
@media (min-aspect-ratio: 1/1) and (max-height: 500px) {
  #container {
    width: 100% !important;
    max-width: 100% !important;
  }

  #main,
  #main-content-box,
  #outerDiv {
    display: block !important;
  }

  #leftPane,
  #rightPane {
    float: none !important;
    width: 100% !important;
    padding: 10px !important;
  }

  .splitleft,
  .splitright {
    width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
  }

  /* Header row layout - FULL WIDTH */
  .header-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 5px 10px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  #logo {
    margin: 0 !important;
    min-height: auto !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
  }

  #logo h1 {
    font-size: 1.4em !important;
  }

  /* Buttons container visible */
  .action-buttons-container {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
  }

  /* Compact square buttons */
  .action-btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 32px !important;
    width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 6px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }

  .action-btn .btn-text {
    display: none !important;
  }

  .action-btn .btn-icon-svg {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
  }
}